package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import java.math.BigDecimal;


/**
 * 会员信息业务对象 t_member_info
 *
 * @author Joker
 * @date 2024-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MemberInfoBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员类型（0-普通会员、1-网格会员）
     */
    @NotBlank(message = "会员类型（0-普通会员、1-网格会员）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberType;

    /**
     * 会员级别（0-天会员、1-月会员、2-年度会员、3-永久会员）
     */
    @NotBlank(message = "会员级别（0-天会员、1-月会员、2-年度会员、3-永久会员）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberLevel;

    /**
     * 会员名称
     */
    @NotBlank(message = "会员名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberName;

    /**
     * 会员权益
     */
    @NotBlank(message = "会员权益不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberPrivileges;

    /**
     * 会员金额
     */
    @NotNull(message = "会员金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal memberAmount;

    /**
     * 备注
     */
    private String remark;


}
